﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200026B RID: 619
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousEditDiceScRsp : IMessage<ChessRogueNousEditDiceScRsp>, IMessage, IEquatable<ChessRogueNousEditDiceScRsp>, IDeepCloneable<ChessRogueNousEditDiceScRsp>, IBufferMessage
	{
		// Token: 0x17000826 RID: 2086
		// (get) Token: 0x06001BDE RID: 7134 RVA: 0x0005025F File Offset: 0x0004E45F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousEditDiceScRsp> Parser
		{
			get
			{
				return ChessRogueNousEditDiceScRsp._parser;
			}
		}

		// Token: 0x17000827 RID: 2087
		// (get) Token: 0x06001BDF RID: 7135 RVA: 0x00050266 File Offset: 0x0004E466
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousEditDiceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000828 RID: 2088
		// (get) Token: 0x06001BE0 RID: 7136 RVA: 0x00050278 File Offset: 0x0004E478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousEditDiceScRsp.Descriptor;
			}
		}

		// Token: 0x06001BE1 RID: 7137 RVA: 0x0005027F File Offset: 0x0004E47F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceScRsp()
		{
		}

		// Token: 0x06001BE2 RID: 7138 RVA: 0x00050288 File Offset: 0x0004E488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceScRsp(ChessRogueNousEditDiceScRsp other) : this()
		{
			this.queryDiceInfo_ = ((other.queryDiceInfo_ != null) ? other.queryDiceInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001BE3 RID: 7139 RVA: 0x000502D4 File Offset: 0x0004E4D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousEditDiceScRsp Clone()
		{
			return new ChessRogueNousEditDiceScRsp(this);
		}

		// Token: 0x17000829 RID: 2089
		// (get) Token: 0x06001BE4 RID: 7140 RVA: 0x000502DC File Offset: 0x0004E4DC
		// (set) Token: 0x06001BE5 RID: 7141 RVA: 0x000502E4 File Offset: 0x0004E4E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDice QueryDiceInfo
		{
			get
			{
				return this.queryDiceInfo_;
			}
			set
			{
				this.queryDiceInfo_ = value;
			}
		}

		// Token: 0x1700082A RID: 2090
		// (get) Token: 0x06001BE6 RID: 7142 RVA: 0x000502ED File Offset: 0x0004E4ED
		// (set) Token: 0x06001BE7 RID: 7143 RVA: 0x000502F5 File Offset: 0x0004E4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06001BE8 RID: 7144 RVA: 0x000502FE File Offset: 0x0004E4FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousEditDiceScRsp);
		}

		// Token: 0x06001BE9 RID: 7145 RVA: 0x0005030C File Offset: 0x0004E50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousEditDiceScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.QueryDiceInfo, other.QueryDiceInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001BEA RID: 7146 RVA: 0x0005035C File Offset: 0x0004E55C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.queryDiceInfo_ != null)
			{
				num ^= this.QueryDiceInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001BEB RID: 7147 RVA: 0x000503B1 File Offset: 0x0004E5B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001BEC RID: 7148 RVA: 0x000503B9 File Offset: 0x0004E5B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001BED RID: 7149 RVA: 0x000503C4 File Offset: 0x0004E5C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.queryDiceInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.QueryDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001BEE RID: 7150 RVA: 0x00050420 File Offset: 0x0004E620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.queryDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.QueryDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001BEF RID: 7151 RVA: 0x00050478 File Offset: 0x0004E678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousEditDiceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.queryDiceInfo_ != null)
			{
				if (this.queryDiceInfo_ == null)
				{
					this.QueryDiceInfo = new ChessRogueDice();
				}
				this.QueryDiceInfo.MergeFrom(other.QueryDiceInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001BF0 RID: 7152 RVA: 0x000504E0 File Offset: 0x0004E6E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001BF1 RID: 7153 RVA: 0x000504EC File Offset: 0x0004E6EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.queryDiceInfo_ == null)
					{
						this.QueryDiceInfo = new ChessRogueDice();
					}
					input.ReadMessage(this.QueryDiceInfo);
				}
			}
		}

		// Token: 0x04000BA1 RID: 2977
		private static readonly MessageParser<ChessRogueNousEditDiceScRsp> _parser = new MessageParser<ChessRogueNousEditDiceScRsp>(() => new ChessRogueNousEditDiceScRsp());

		// Token: 0x04000BA2 RID: 2978
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BA3 RID: 2979
		public const int QueryDiceInfoFieldNumber = 5;

		// Token: 0x04000BA4 RID: 2980
		private ChessRogueDice queryDiceInfo_;

		// Token: 0x04000BA5 RID: 2981
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04000BA6 RID: 2982
		private uint retcode_;
	}
}
